﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserView.master" AutoEventWireup="true" CodeBehind="AddNewProduct.aspx.cs" Inherits="BestBuy.PageUser.AddNewProduct" %>
<%@ Register TagPrefix="uc" TagName="SelectCategory" Src="~/UserControl/SelectCategory.ascx" %>
<%@ Register TagPrefix="uc" TagName="ProductInfoDetail" Src="~/UserControl/ProductInfoDetail.ascx" %>
<%@ Register TagPrefix="uc" TagName="ProducInfoPreview" Src="~/UserControl/ProductInfoPreview.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:Panel ID="Panel3" runat="server" CssClass="left-side-bar bs-docs-sidebar">
        
            <ul class="nav nav-list bs-docs-sidenav">
              <li class="active" style="text-align: center;"><a href="#">My Product</a></li>
              <li><a id="A5" runat="server" href="AddNewProduct.aspx">
                <i class="icon-chevron-right"></i>Add New Product</a></li>
              <li><a id="A6" runat="server" href="MbSellling.aspx">
                <i class="icon-chevron-right"></i>Manage Products</a></li>        
            </ul>
            <br />
            <ul class="nav nav-list bs-docs-sidenav">
              <li class="active" style="text-align: center;"><a href="#">My Sell Offers</a></li>
              <li><a id="A8" runat="server" href="AddNewSellOffer.aspx">
                <i class="icon-chevron-right"></i>Add New Sell Offer</a></li>
              <li><a id="A9" runat="server" href="ManageSellOffer.aspx">
                <i class="icon-chevron-right"></i>Manage Sell Offers</a></li>          
            </ul>
     </asp:Panel>
<div class="main-content">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
   <%-- <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>--%>
            <div style="padding: 20px;">
            <asp:Wizard ID="PostNewListingWizard" runat="server" OnActiveStepChanged="PostNewListingWizard_ActiveStepChanged"
                OnNextButtonClick="PostNewListingWizard_NextButtonClick" 
                    OnFinishButtonClick="PostNewListingWizard_FinishButtonClick" >
                <LayoutTemplate>
                    <div>
                        <asp:PlaceHolder ID="sideBarPlaceHolder" runat="server" />
                    </div>
                    <div>
                        <asp:PlaceHolder ID="WizardStepPlaceHolder" runat="server" />
                    </div>
                    <div>
                        <asp:PlaceHolder ID="navigationPlaceHolder" runat="server" />
                    </div>
                </LayoutTemplate>
                <SideBarTemplate>
                    <asp:ListView ID="sideBarList" runat="server" OnItemDataBound="SideBar_ItemDataBound">
                        <LayoutTemplate>
                            <ul class="breadcrumbs-two">
                                <div id="ItemPlaceHolder" runat="server">
                                </div>
                            </ul>
                        </LayoutTemplate>
                        <ItemTemplate>
                            <li>
                                <asp:LinkButton ID="sideBarButton" runat="server" Text="Button" /></li>
                        </ItemTemplate>
                        <SelectedItemTemplate>
                            <li class="current">
                                <asp:LinkButton ID="sideBarButton" runat="server" Text="Button" /></li>
                        </SelectedItemTemplate>
                    </asp:ListView>
                </SideBarTemplate>
                <StartNavigationTemplate>
                    <asp:Button ID="StepNextButton" runat="server" CssClass="btn btn-primary" 
                        Text="Next" CommandName="MoveNext" 
                        ValidationGroup="SelectCategoryValidators" />
                </StartNavigationTemplate>
                <StepNavigationTemplate>
                    <asp:Button ID="StepPrevButton" runat="server" CssClass="btn" Text="Back" 
                        CommandName="MovePrevious" />
                    <asp:Button ID="StepNextButton" runat="server" CssClass="btn btn-primary" Text="Next"
                        CommandName="MoveNext" />
                </StepNavigationTemplate>
                <FinishNavigationTemplate>
                    <asp:Button ID="StepPrevButton" runat="server" CssClass="btn" Text="Back" 
                        CommandName="MovePrevious" />
                    <asp:Button ID="StepNextButton" runat="server" CssClass="btn btn-primary" Text="Finish"
                        CommandName="MoveComplete" />
                </FinishNavigationTemplate>
                <WizardSteps>
                    <asp:WizardStep ID="SelectCategoryStep" runat="server" Title="Select Category">
                        <uc:SelectCategory runat="server" ID="SelectCategoryControl" />
                        <asp:ValidationSummary runat="server" ID="SelectCategoryValidateSummary" 
                            CssClass="alert alert-danger" ValidationGroup="SelectCategoryValidators"  />
                        <asp:RequiredFieldValidator runat="server" ID="SelectCategoryRequired" ControlToValidate="SelectCategoryControl"
                            ValidationGroup="SelectCategoryValidators" CssClass="failureNotification" ErrorMessage="Chọn danh mục nhỏ nhất."
                            Display="None" />
                    </asp:WizardStep>
                    <asp:WizardStep ID="ProductDetailsStep" runat="server" 
                        Title="Add product detail" >
                        <uc:ProductInfoDetail ID="ProductDetailControl" runat="server" />
                    </asp:WizardStep>
                    <asp:WizardStep ID="PreviewStep" runat="server" Title="Preview detail" >
                        <uc:ProducInfoPreview ID="PreviewProductInfoControl" runat="server" />
                    </asp:WizardStep>
                </WizardSteps>
            </asp:Wizard>
            </div>
   <%--     </ContentTemplate>
    </asp:UpdatePanel>--%>
</div>
</asp:Content>
